SetAuthToken
setAuthToken(token:string): void
- This function is provided for instances where the authentication token is derived elsewhere (code behind or via custom REST API calls)
Example
The following initializes a new embed client for the target instance of Pyramid and sets the security token using a string in the client called "myToken" that was created elsewhere.
var client = pyramidEmbedClient("https://analytics.pyramid.com"); client.setAuthToken(myToken);